package com.system.exam.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 考试题目
 * @TableName bus_exam_question
 */
@TableName(value ="bus_exam_question")
@Data
public class BusExamQuestion implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 分类ID
     */
    @TableField(value = "category_id")
    private Integer categoryId;

    /**
     * 分类名称
     */
    @TableField(value = "category_name")
    private String categoryName;

    /**
     * 难度
     */
    @TableField(value = "difficulty_level")
    private Integer difficultyLevel;

    /**
     * 问题类型 0：判断 1：单选题 2 多选 
     */
    @TableField(value = "question_type")
    private Integer questionType;

    /**
     * 问题描述
     */
    @TableField(value = "question")
    private String question;

    /**
     * 答案
     */
    @TableField(value = "question_answer")
    private String questionAnswer;

    /**
     * 回答解释
     */
    @TableField(value = "answer_analysis")
    private String answerAnalysis;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 0：未发布 1：已发布
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 用户ID
     */
    @TableField(value = "create_user_id")
    private Long createUserId;

    /**
     * 姓名
     */
    @TableField(value = "create_user_name")
    private String createUserName;

    /**
     * 阅读数量
     */
    @TableField(value = "read_count")
    private Integer readCount;

    /**
     * 收藏数
     */
    @TableField(value = "collect_count")
    private Integer collectCount;

    /**
     * 0:内部 1:外部发布
     */
    @TableField(value = "post_user_type")
    private Integer postUserType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}